export interface LoginParams {
  username: string
  password: string
}

export interface PhoneLoginParams {
  phone: string
  code: string
}

export interface GetCodeParams {
  phone: string
  captcha: string
}

export interface LoginResponse {
  platformUserId: number
  username: string
  name: string
  avatar: string
  token: string
  [key: string]: any // 允许其他字段
}

export interface LoginResult {
  code: string
  message: string
  data: LoginResponse
}
